import request from './request'

export const createComment = async (postId, content) => {
  return request.post(`/posts/${postId}/comments`, { content })
}

export const fetchComments = async (postId) => {
  return request.get(`/posts/${postId}/comments`)
}